<template>
  <div class="buy">
    <div class="buy-item">
      <div class="buy-text">{{ cartAccount }}</div>
      <div class="buy-price">{{ buyPrice }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    cartAccount: {
      type: String,
      default: "买买买",
    },
    buyPrice: {
      type: String,
      default: "买不起",
    },
  },
};
</script>

<style scoped>
.buy {
  width: 100vw;
  height: 100vh;
  background-color: #000;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  opacity: 0.7;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.buy-item {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 10%;
  opacity: 1;
}
</style>
